// ConnectionType.h: interface for the ConnectionType class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CONNECTIONTYPE_H__FBCBFBE2_13F6_4BDB_BB2C_00DDF5932B92__INCLUDED_)
#define AFX_CONNECTIONTYPE_H__FBCBFBE2_13F6_4BDB_BB2C_00DDF5932B92__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class ConnectionType
{
protected:
	ConnectionType();
	virtual ~ConnectionType();

public:
	enum {NumOfTypes = 9};
	enum Types {Unknown = 0, LoginBridge, LogoutBridge, LoginClient, LogoutClient, LoginBridgeEx, LogoutBridgeEx, LoginClientEx, LogoutClientEx};

	enum { UnknownState = 0, NormalState , AlertState , HaltState , DataNotChangeState};
	// Convert name to type;
	static Types FromName(LPCSTR lpszName);
	// Convert type to name;
	static LPCSTR GetName(Types Type);

private:
	static LPCSTR m_lpszName[];
};

#endif // !defined(AFX_CONNECTIONTYPE_H__FBCBFBE2_13F6_4BDB_BB2C_00DDF5932B92__INCLUDED_)
